package com.zlf.feign;

import com.zlf.po.CommonResult;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CartFeignClientCallBack implements CartFeignClient{
    @Override
    public CommonResult<List> listCart(String userId, Integer businessId) {
        //返回降级响应（购物车信息返回null）
        return new CommonResult(403,"fegin触发了熔断降级",null);
    }

    @Override
    public CommonResult<Integer> cleanCart(String userId, Integer businessId) throws Exception {
        //返回降级响应（int信息返回null）
        return new CommonResult(403,"fegin触发了熔断降级",null);
    }
}
